<template>
  <div class="app-container">
    <el-table v-loading="loading" :data="typeList">
      <el-table-column label="用工部门" align="center" prop="wspDeptPost.deptName">
      </el-table-column>
      <el-table-column label="用工岗位" align="center" prop="wspDeptPost.postName" :show-overflow-tooltip="true" />
      <el-table-column label="院系专业" align="center" prop="dm" :show-overflow-tooltip="true">
      </el-table-column>
      <el-table-column label="学生姓名" align="center" prop="studentName"></el-table-column>
      <el-table-column label="注册号" align="center" prop="regCode"></el-table-column>
      <el-table-column label="用工薪酬" align="center" prop="wspDeptPost.postComp">
        <template slot-scope="scope">
                    {{ scope.row.wspDeptPost.postComp}}元/小时
                </template>
      </el-table-column>
      <el-table-column label="用工时长" align="center" prop="wspDeptPost.workHours">
        <template slot-scope="scope">
                    {{ scope.row.wspDeptPost.workHours}}小时
                </template>
      </el-table-column>
      <el-table-column label="申请时间" align="center" prop="applyTime"></el-table-column>
      <el-table-column label="审核时间" align="center" prop="apprTime"></el-table-column>
    </el-table>

    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
      @pagination="getList" />
  </div>
</template>
  
<script>
import {getSelector} from "@/api/psychological/basic"
import { postempList } from '@/api/worStudy/postManagement'
export default {
  name: "Dict",
  dicts: ['sys_normal_disable'],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      // 总条数
      total: 0,
      typeList:[],
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
    };
  },
  created() {
    getSelector().then(res => {
      this.getTeacherList = res.data
    })
  },
  methods: {
    /** 查询字典类型列表 */
    getList(data) {
      this.queryParams = data
      this.loading = true
      if(data.page || data.limit) {
                data.pageNum = data.page 
                data.pageSize = data.limit 
                this.queryParams.pageNum = data.page 
                this.queryParams.pageSize = data.limit 
            }
      this.loading = true
      postempList(data).then(response => {
        this.typeList = response.rows;
        this.total = response.total;
        this.loading = false;
      })
    },
    
  }
};
</script>
<style scoped>
::v-deep .avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 150px;
  height: 150px;
  line-height: 150px;
  text-align: center;
}

.avatar {
  width: 150px;
  height: 150px;
  display: block;
  border: 1px dashed red;
}

.uploaderText {
  display: flex;
}

.text {
  margin-left: 15px;
  line-height: 35px;
  color: #9A9A9A;
}
.container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
 
.left {
  width: 30%
}
.right {
  width: 65%
  
}
</style>